<%@ page import="fleet_management.Admin" %>



<div class="fieldcontain ${hasErrors(bean: adminInstance, field: 'userName', 'error')} required">
	<label for="userName">
		<g:message code="admin.userName.label" default="User Name" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="userName" required="" value="${adminInstance?.userName}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: adminInstance, field: 'passWord', 'error')} required">
	<label for="passWord">
		<g:message code="admin.passWord.label" default="Pass Word" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="passWord" required="" value="${adminInstance?.passWord}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: adminInstance, field: 'region', 'error')} ">
	<label for="region">
		<g:message code="admin.region.label" default="Region" />
		
	</label>
	<g:select name="region" from="${adminInstance.constraints.region.inList}" value="${adminInstance?.region}" valueMessagePrefix="admin.region" noSelection="['': 'Choose Region']"/>
</div>

<div class="fieldcontain ${hasErrors(bean: adminInstance, field: 'name', 'error')} required">
	<label for="name">
		<g:message code="admin.name.label" default="Name" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="name" required="" value="${adminInstance?.name}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: adminInstance, field: 'phoneNo', 'error')} required">
	<label for="phoneNo">
		<g:message code="admin.phoneNo.label" default="Phone No" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="phoneNo" required="" value="${adminInstance?.phoneNo}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: adminInstance, field: 'emailAddress', 'error')} required">
	<label for="emailAddress">
		<g:message code="admin.emailAddress.label" default="Email Address" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="emailAddress" required="" value="${adminInstance?.emailAddress}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: adminInstance, field: 'address', 'error')} required">
	<label for="address">
		<g:message code="admin.address.label" default="Address" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="address" required="" value="${adminInstance?.address}"/>
</div>

